
package com.tuibo.sdk.sample;

import com.tuibo.api.TuiboAPI;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);
    }

    public void handleClick(View view) {
        int id = view.getId();
        switch (id) {

            case R.id.btn_add:

                TuiboAPI.addTBLogo(this, getString(R.string.tb_key), getString(R.string.tb_secret));

                break;

            case R.id.btn_remove:

                TuiboAPI.removeTBLogo();

                break;

            case R.id.btn_exit:
                TuiboAPI.exitTB(0);
                finish();
                System.exit(0);
                break;
        }
    }
}
